package edu.ntu.cloudroid.model.friend;

import java.io.Serializable;
import java.util.List;

import edu.ntu.cloudroid.model.IDs;
import edu.ntu.cloudroid.model.IDs.UploadID;
import edu.ntu.cloudroid.model.UserData;

public class FriendInfo implements Serializable, UserData{

	static final IDs.UploadID uploadId = IDs.UploadID.Friend;
	
	public static final int ADD = 0;
	public static final int REMOVE = 1;
	public static final int REPLY = 2;
	
	String user1, user2;
	String user;
	List<String> friends;
	List<String> groups;
	int type;
	
	public FriendInfo(String u1, String u2, int type){
		this.user1 = u1;
		this.user2 = u2;
		this.type = type;
	}
	
	
	
	public FriendInfo(String user, List<String> friends, int type){
		this.user = user;
		this.friends = friends;
		this.type = type;
	}
	
	public FriendInfo(String user, List<String> friends, List<String> groups, int type){
		this.user = user;
		this.friends = friends;
		this.groups = groups;
		this.type = type;
	}
	
	public int getType(){
		return this.type;
	}
	
	public List<String> getGroupList(){
		return this.groups;
	}
	
	public List<String> getFriendList(){
		return this.friends;
	}
	
	public String getUser1() {
		return user1;
	}

	public String getUser2() {
		return user2;
	}


	@Override
	public UploadID getUploadID() {
		return FriendInfo.uploadId;
	}

}
